<?php
namespace app\api\model;

use think\Model;

class Apply extends Model
{
    public function user()
    {
        return $this->hasOne('User','u_id','u_id')->field('u_id,name,mail,headpic,place,gender,phone,qq,signature');
    }

    public function works()
    {
        return $this->hasMany('Production','p_id','p_id');
    }
}